export default {
    setItem(key: string, value: string) {
        try {
            uni.setStorageSync(key, value);
        } catch (e) {
            console.error('persist-storage-setItem,e', e)
        }
    },
    getItem(key: string): string | null {
        let value = null;
        try {
            value = uni.getStorageSync(key);
        } catch (e) {
            console.error('persist-storage-getItem,e', e)
        }
        return value;
    }
}